import java.util.Scanner;

public class Test6 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double x = sc.nextInt();
        int ret=(int)(Math.sqrt(x));
        System.out.println(ret);
    }
}
